<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width" />
    <meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
    <title>我的</title>
    <link rel="stylesheet" type="text/css" href="../css/aui-flex.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/common.css" />
    <style>
        html, body {
            background: #F5F7F8;
        }
        .topBox {
            position: relative;
        }
        .bg {
            /*position: absolute;*/
            left: 0;
            top: 0;
            overflow: hidden;
            width: 100%;
            height: 9.2rem;
            box-sizing: content-box;
            background: url(../image/mine/bg.png) no-repeat center center;
            background-size: cover;
        }
        #header {
            background-color: transparent;
        }
        .topBox .set img {
            height: 1rem;
        }
        .topBox .min img {
            height: 1.2rem;
        }
        .ava, .ava img {
            width: 3rem;
            height: 3rem;
            border-radius: 50%;
        }
        .user {
            padding: 0 1.5rem;
        }
        .user-inner {
            padding-left: 0.8rem;
        }
        .m-name .log {
            width: 5rem;
            height: 0.7rem;
            display: inline-block;
            margin-bottom: 6px;
            /*margin-left: 0.5rem;*/
            color:#fff;
        }
        .m-name .log.tag-pt {
            /*background: url('../image/mine/2.png') no-repeat;
			background-size: auto 0.7rem;*/
        }
        .m-name .log.tag-y {
            /*background: url('../image/mine/2.png') no-repeat;
            background-size: auto 0.7rem;*/
        }
        .m-name .log.tag-vip {
            /*background: url('../image/mine/3.png') no-repeat;
            background-size: auto 0.7rem;*/
        }
        .m-name .log.tag-cj {
            /*background: url('../image/mine/4.png') no-repeat;
            background-size: auto 0.7rem;*/
        }
        .user-bom {
            position: absolute;
            bottom: 0;
            left: 1.5rem;
            right: 1.5rem;
            height: 2rem;
            line-height: 2rem;
            padding: 0 0.8rem;
            box-shadow: inset 0 -0.15rem 0.15rem 0 rgba(29, 29, 29, 0.05);
            border-radius: 0.65rem 0.65rem 0 0;
        }
        .bomup>img {
            display: inline-block;
            vertical-align: middle;
            margin-left: 0.3rem
        }
        .pd-1 {
            padding: 0 1rem;
        }
        .tp-16 {
            padding: 0.8rem 0;
        }
        .meBtn {
            width: 3.6rem;
            height: 1.4rem;
            line-height: 1.4rem;
            border: 1px solid #ADADAD;
            font-size: 0.6rem;
            color: #353336;
            text-align: center;
            border-radius: 5rem;
        }
        .price {
            font-size: 1.4rem;
            color: #E73350;
            font-weight: bold;
            padding-top: 0.15rem;
            line-height: 34px;
        }
        .icon {
            width: 0.8rem;
            height: 0.8rem;
            overflow: hidden;
            display: inline-block;
            vertical-align: -0.15rem;
            margin-left: 0.25rem;
            background: url(../image/mine/m_icon1.png) no-repeat center center;
            background-size: 0.8rem;
        }
        .text-bold {
            font-weight: bold;
        }
        .list {
            height: 2.4rem;
            border-bottom: 1px solid #DEDEDE;
        }
        .list .list-in li {
            padding-left: 0.35rem;
        }
        .list .list-in li img {
            border-radius: 50%;
        }
        .list:last-child {
            border-bottom: none;
        }
        .list .text {
            padding-left: 1rem;
            padding-right: 0.85rem;
            font-size: 0.7rem;
            color: #373336;
        }
        .guide dl {
            padding: 0.1rem 0.7rem 0.4rem;
            /*width: 4.6rem;
	height: 4.6rem;*/
            background: #fff;
        }
        .guide dl dt img {
            height: 3rem;
            margin: 0 auto;
        }
        .guide dl dd {
            font-size: 0.7rem;
            color: #333;
            text-align: center;
        }
        @media (max-width:320px) {
            .guide dl {
                /*width: 3.8rem;
		height: 3.8rem;*/
                padding: 0.1rem 0.4rem 0.4rem;
            }
            input {
                background: transparent !important;
                width: 2rem;
            }
            .user {
                padding: 0 1rem;
            }
            .copyBtnBox {
                margin-left: -0.8rem;
            }
            .font-size-14 {
                font-size: 0.6rem;
            }
        }
        .tit-bot {
            font-size: 0.6rem;
            color: #cacaca;
            text-align: center;
            padding-top: 0.8rem;
            padding-bottom: 1rem;
        }
        .gd {
            width: 3.6rem;
            text-align: center;
            height: 1.4rem;
            line-height: 1.4rem;
            border-radius: 0.8rem;
            border: 1px solid #fff;
            display: inline-block;
        }
        .copyBtn {
            font-size: 0.5rem;
            width: 1.8rem;
            text-align: center;
            height: 0.9rem;
            line-height: 0.9rem;
            border-radius: 2px;
            border: 1px solid #fff;
            display: inline-block;
        }
        .font-size-14 {
            font-size: 0.7rem;
        }
        input {
            background: transparent !important;
            width: 2.5rem;
        }
    </style>
</head>

<body>

    <div class="dataBox">
        <div class="topBox bg topTpl dataTop" id="top">
            <div id="data_top_html">

            </div>
        </div>
        <script type="text/x-dot-template" id="data_top_tpl">
            <div class="topBox bg topTpl " id="top">
                <header class="aui-bar aui-bar-nav" id="header">
                    <div class="aui-pull-left set"><img src="../image/mine/m_icon2.png" alt="" tapmode onclick="openSet()"></div>
                    <div></div>
                    <div class="aui-pull-right min" tapmode onclick="openArticle()"><img src="../image/common/01.png" alt=""></div>
                </header>
                <div class="user">
                    <div class="aui-flex-col color-fff aui-flex-middle">
                        <div class="ava"><img class="user_avatar" src="{{= it.user_avatar ? it.user_avatar : '../image/common/23.png' }}" alt=""></div>
                        <div class="user-inner flex-auto login">
                            <div class="m-name aui-font-size-18">
                              <span class="userName">{{=it.user_nickname}}</span> {{if(it.user_vip == 1){ }}
                                <p class="log tag-pt">普通会员</p>
                                {{}else if(it.user_vip == 2){}}
                                <p class="log tag-vip">黄金会员</p>
                                {{}else if(it.user_vip == 3){}}
                                <p class="log tag-y">铂金会员</p>
                                {{}else if(it.user_vip == 4){}}
                                <p class="log tag-cj">钻石会员</p>
                                {{}}}
                            </div>
                            <div class="font-size-14">ID：<span class="noText">{{=it.user_id}}</span></div>

                            <div class="font-size-14 aui-flex-col aui-flex-between aui-flex-middle">
                                <div id="copy">邀请码：<input id="copy-code" class="color-fff font-size-14" value="{{=it.user_invitation_code}}" readonly>
                                </div>
                                <div class="copyBtnBox aui-flex-item-1 flex-auto" style="display:none" tapmode onclick="copyCode()">
                                    <span class="copyBtn">复制</span>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>

            </div>
            {{if(it.user_vip == 1){ }}
            <div class="user-bom bg-white aui-flex-col aui-flex-middle aui-flex-between aui-font-size-12 color-e7" data-status="2" tapmode onclick="updateLevel()">
                <div class="aui-flex-col">可升级为黄金会员</div>
                <div class="flex-auto aui-margin-l-10"></div>
                <div class="bomup" tapmode onclick="">立即升级<img src="../image/mine/m_icon6.png" style="height:0.8rem" alt=""></div>
            </div>
            {{ }else if(it.user_vip == 2){ }} {{if(it.apply_status == 1){ }}
            <div class="user-bom bg-white aui-flex-col aui-flex-middle aui-flex-between aui-font-size-12 color-e7" data-status="1" tapmode onclick="updateLevel()">
                <div class="aui-flex-col">可升级为铂金会员</div>
                <div class="flex-auto aui-margin-l-10"><img src="../image/mine/m_icon6.png" style="height:0.8rem" alt=""></div>
                <div class="bomup" tapmode onclick="">收益+30% >> </div>
            </div>
            {{ }else if(it.apply_status == 2){ }}
            <div class="user-bom bg-white aui-flex-col aui-flex-between aui-font-size-12 color-e7" data-status="2">
                <div class="">您已获得升级“运营商”资格 </div>
                <div class="bomup" tapmode onclick="">立即升级 <img src="../image/mine/m_icon6.png" style="height:0.8rem" alt=""></div>
            </div>
            {{ }else if(it.apply_status == 3){ }}
            <div class="user-bom bg-white aui-flex-col aui-flex-between aui-font-size-12 color-e7" data-status="3">
                <div class="">您已获得升级“运营商”资格 </div>
                <div class="bomup" tapmode onclick="">系统审核中 <img src="../image/mine/m_icon6.png" style="height:0.8rem" alt=""></div>
            </div>
            {{ } }} {{ }else if(it.user_vip == 3){ }} {{if(it.apply_status == 1){ }}
            <div class="user-bom bg-white aui-flex-col aui-flex-middle aui-flex-between aui-font-size-12 color-e7" data-status="1" tapmode onclick="updateLevel()">
                <div class="aui-flex-col">可升级为钻石会员</div>
                <div class="flex-auto aui-margin-l-10"><img src="../image/mine/m_icon6.png" style="height:0.8rem" alt=""></div>
                <div class="bomup" tapmode onclick="">收益+30% >> </div>
            </div>
            {{ }else if(it.apply_status == 2){ }}
            <div class="user-bom bg-white aui-flex-col aui-flex-between aui-font-size-12 color-e7" data-status="2">
                <div class="">您已获得升级“超级运营商”资格 </div>
                <div class="bomup" tapmode onclick="">立即升级 <img src="../image/mine/m_icon6.png" style="height:0.8rem" alt=""></div>
            </div>
            {{ }else if(it.apply_status == 3){ }}
            <div class="user-bom bg-white aui-flex-col aui-flex-between aui-font-size-12 color-e7" data-status="3">
                <div class="">您已获得升级“超级运营商”资格 </div>
                <div class="bomup" tapmode onclick="">系统审核中 <img src="../image/mine/m_icon6.png" style="height:0.8rem" alt=""></div>
            </div>
            {{ } }} {{}}}
    </div>
    </script>
    <div id="data_bom_html"></div>
    <script type="text/x-dot-template" id="data_bom_tpl">
        <div class="aui-content">
            {{if(it.user_vip == 1){ }}
            <div class="income pd-1 bg-white">
                <div class="aui-flex-col aui-flex-between aui-flex-middle tp-16 aui-border-b">
                    <div>
                        <div class="aui-font-size-12 color-35">累计总收入<span class="icon" tapmode onclick="openPop(this)"></span></div>
                        <div class="price">￥<span class="noText">***</span></div>
                    </div>
                    <div>
                        <div class="meBtn" tapmode onclick="openWin('full_commission_win')">收入明细</div>
                        <div class="meBtn" style="margin-top:0.4rem" tapmode onclick="openWin('pay_detail_win')">收支明细</div>
                    </div>
                </div>
                <ul class="aui-flex-col aui-flex-between tp-16">
                    <li>
                        <p class="aui-font-size-18 color-e7 text-bold" tapmode onclick="openCommis(this)">￥<span class="noText">***</span></p>
                        <p class="aui-font-size-12 color-35">今日收益<span class="icon" tapmode onclick="openPop(this)"></span></p>
                    </li>
                    <li>
                        <p class="aui-font-size-18 color-e7 text-bold" tapmode onclick="openCommis(this)">￥<span class="noText">***</span></p>
                        <p class="aui-font-size-12 color-35">上月结算<span class="icon" tapmode onclick="openPop(this)"></span></p>
                    </li>
                    <li>
                        <p class="aui-font-size-18 color-e7 text-bold" tapmode onclick="openCommis(this)">￥<span class="noText">***</span></p>
                        <p class="aui-font-size-12 color-35">本月预估<span class="icon" tapmode onclick="openPop(this)"></span></p>
                    </li>
                </ul>
            </div>
            <div class="income pd-1 bg-white aui-margin-t-10">
                <div class="tp-16 aui-border-b">
                    <div class="aui-font-size-12 color-35">淘币</div>
                    <div class="aui-flex-col aui-flex-between aui-flex-middle">
                        <div class="price">￥<span class="noText" id="amount">***</span></div>
                        <div class="meBtn" tapmode onclick="openCash()">提现</div>
                        <div class="meBtn" tapmode onclick="zhuanzhang()">转账</div>
                    </div>
                </div>

                <ul class="aui-flex-col aui-flex-between tp-16">
                    <li>
                        <p class="aui-font-size-18 color-35 text-bold">￥<span class="noText">{{=it.save || '0.00'}}</span></p>
                        <p class="aui-font-size-12 color-35">已累计你的朋友节省</p>
                    </li>
                    <li>
                        <p class="aui-font-size-18 color-35 text-bold">￥<span class="noText">***</span></p>
                        <p class="aui-font-size-12 color-35">累积提现</p>
                    </li>
                    <li>
                    </li>
                </ul>
            </div>
            <div class="aui-margin-t-10 pd-1 bg-white">
                <div class="list aui-flex-col aui-flex-between aui-flex-middle right-arrow" tapmode onclick="openWin('my_team_win')">
                    <div>我的团队</div>
                    <div class="aui-flex-col aui-flex-middle">
                        <ul class="list-in aui-flex-col">
                            <li></li>
                        </ul>
                        <div class="text"><span class="noText" id="teamPeo">***</span>人</div>
                    </div>
                </div>
                <div class="list aui-flex-col aui-flex-between aui-flex-middle right-arrow" tapmode onclick="openWin('money_win')">
                    <div>我的积分</div>
                    <div class="text"><span class="noText">***</span>枚</div>
                </div>
                <div class="list aui-flex-col aui-flex-between aui-flex-middle right-arrow" tapmode onclick="openWin('reward_win')">
                    <div>我的奖励</div>
                    <div class="text"><span class="noText">***</span></div>
                </div>
                <div class="list aui-flex-col aui-flex-between aui-flex-middle right-arrow" tapmode onclick="openOrder()">
                    <div>淘客订单</div>
                    <div class="text"></div>
                </div>
                <div class="list aui-flex-col aui-flex-between {{=it.inviter == " " ? 'aui-hide':''}} aui-flex-middle">
                    <div>我的推荐人</div>
                    <div class="aui-flex-col aui-flex-middle">
                        <ul class="list-in aui-flex-col">
                            <li style="padding-left: 0.25rem;"><img src="{{= it.inviter.user_avatar ? it.inviter.user_avatar : '../image/common/23.png' }}" style="height:1.2rem" alt=""></li>
                        </ul>
                        <div class="text aui-padded-l-10">{{=it.inviter.user_nickname}}</div>
                    </div>
                </div>
            </div>
            {{ }else { }}
            <div class="income pd-1 bg-white">
                <div class="aui-flex-col aui-flex-between aui-flex-middle tp-16 aui-border-b">
                    <div>
                        <div class="aui-font-size-12 color-35">累计总收入<span class="icon" tapmode onclick="openPop(this)"></span></div>
                        <div class="price">￥<span class="noText">{{=it.user_income || '0.00'}}</span></div>
                    </div>
                    <div>
                        <div class="meBtn" tapmode onclick="openWin('full_commission_win')">收入明细</div>
                        <div class="meBtn" style="margin-top:0.4rem" tapmode onclick="openWin('pay_detail_win')">收支明细</div>
                    </div>
                </div>
                <ul class="aui-flex-col aui-flex-between tp-16">
                    <li>
                        <p class="aui-font-size-18 color-e7 text-bold" tapmode onclick="openCommis(this)">￥<span class="noText">{{=it.today_income || '0.00'}}</span></p>
                        <p class="aui-font-size-12 color-35">今日收益<span class="icon" tapmode onclick="openPop(this)"></span></p>
                    </li>
                    <li>
                        <p class="aui-font-size-18 color-e7 text-bold" tapmode onclick="openCommis(this)">￥<span class="noText">{{=it.lastmonth_income || '0.00'}}</span></p>
                        <p class="aui-font-size-12 color-35">上月结算<span class="icon" tapmode onclick="openPop(this)"></span></p>
                    </li>
                    <li>
                        <p class="aui-font-size-18 color-e7 text-bold" tapmode onclick="openCommis(this)">￥<span class="noText">{{=it.predict_income || '0.00'}}</span></p>
                        <p class="aui-font-size-12 color-35">本月预估<span class="icon" tapmode onclick="openPop(this)"></span></p>
                    </li>
                </ul>
            </div>
            <div class="income pd-1 bg-white aui-margin-t-10">
                <div class="tp-16 aui-border-b">
                    <div class="aui-font-size-12 color-35">淘币</div>
                    <div class="aui-flex-col aui-flex-between aui-flex-middle">
                        <div class="price">￥<span class="noText" id="amount">{{=it.user_amount || '0.00'}}</span></div>
                        <div class="meBtn" tapmode onclick="openCash()">提现</div>
                        <div class="meBtn" tapmode onclick="zhuanzhang()">转账</div>
                    </div>
                </div>
                <ul class="aui-flex-col aui-flex-between tp-16">
                    <li>
                        <p class="aui-font-size-18 color-35 text-bold">￥<span class="noText">{{=it.save || '0.00'}}</span></p>
                        <p class="aui-font-size-12 color-35">已累计你的朋友节省</p>
                    </li>
                    <li>
                        <p class="aui-font-size-18 color-35 text-bold">￥<span class="noText">{{=it.withdraw || '0.00'}}</span></p>
                        <p class="aui-font-size-12 color-35">累积提现</p>
                    </li>
                    <li>
                    </li>
                </ul>
            </div>
            <div class="aui-margin-t-10 pd-1 bg-white">
                <div class="list aui-flex-col aui-flex-between aui-flex-middle right-arrow" tapmode onclick="openWin('my_team_win')">
                    <div>我的团队</div>
                    <div class="aui-flex-col aui-flex-middle">
                        <ul class="list-in aui-flex-col">
                            {{ for(var i in it.user_team) { }}
                            <li data-id="{{=it.user_team[i].userid}}"><img src="{{= it.user_team[i].user_avatar ? it.user_team[i].user_avatar : '../image/demo/01.png' }}" style="height:1.2rem" alt=""></li>
                            {{}}}
                        </ul>
                        <div class="text"><span class="noText" id="teamPeo">{{=it.user_team_count}}</span>人</div>
                    </div>
                </div>
                <div class="list aui-flex-col aui-flex-between aui-flex-middle right-arrow" tapmode onclick="openWin('money_win')">
                    <div>我的积分</div>
                    <div class="text"><span class="noText">{{=it.user_point || '0.00'}}</span>枚</div>
                </div>
                <div class="list aui-flex-col aui-flex-between aui-flex-middle right-arrow" tapmode onclick="openWin('reward_win')">
                    <div>我的奖励</div>
                    <div class="text"><span class="noText">{{=it.user_remard || '0.00'}}</span></div>
                </div>
                <div class="list aui-flex-col aui-flex-between aui-flex-middle right-arrow" tapmode onclick="openOrder()">
                    <div>淘客订单</div>
                    <div class="text"></div>
                </div>
                <div class="list aui-flex-col aui-flex-between {{=it.inviter == " " ? 'aui-hide':''}} aui-flex-middle">
                    <div>我的推荐人</div>
                    <div class="aui-flex-col aui-flex-middle">
                        <ul class="list-in aui-flex-col">
                            <li style="padding-left: 0.25rem;"><img src="{{= it.inviter.user_avatar ? it.inviter.user_avatar : '../image/common/23.png' }}" style="height:1.2rem" alt=""></li>
                        </ul>
                        <div class="text aui-padded-l-10">{{=it.inviter.user_nickname}}</div>
                    </div>
                </div>
            </div>
            {{}}}

            <div class="guide aui-flex-col aui-flex-between aui-flex-middle aui-margin-t-10">
                <dl tapmode onclick="openNew(this)">
                    <dt><img src="../image/mine/m_icon13.png" alt=""></dt>
                    <dd>新手课堂</dd>
                </dl>
                <dl tapmode onclick="openYun()">
                    <dt><img src="../image/mine/m_icon14.png" alt=""></dt>
                    <dd>专属运营</dd>
                </dl>
                <dl tapmode onclick="openNew(this)">
                    <dt><img src="../image/mine/m_icon15.png" alt=""></dt>
                    <dd>种草技巧</dd>
                </dl>
                <dl tapmode onclick="openInvite()">
                    <dt><img src="../image/mine/m_icon16.png" alt=""></dt>
                    <dd>邀请好友</dd>
                </dl>
            </div>
        </div>
        <div style="height:1rem"></div>
    </script>
    </div>
    <div class="noDataBox aui-hide">
        <div class="topBox bg" id="top1">
            <header class="aui-bar aui-bar-nav" id="header">
                <div class="aui-pull-left set"><img src="../image/mine/m_icon2.png" alt="" tapmode onclick="openWin('setting_win')"></div>
                <div></div>
                <div class="aui-pull-right min" tapmode onclick="openArticle()"><img src="../image/common/01.png" alt=""></div>
            </header>
            <div class="user">
                <div class="aui-flex-col color-fff aui-flex-middle">
                    <div class="ava"><img class="user_avatar" src="../image/common/23.png" alt=""></div>
                    <div class="user-inner flex-auto login" tapmode id="login">
                        <div class="m-name aui-font-size-18"><span class="userName">***</span>
                            <p class="log"></p>
                        </div>
                        <div class="font-size-14">ID：<span class="noText">***</span></div>
                        <!-- <div class="font-size-14 aui-flex-col aui-flex-between aui-flex-middle">
							<div id="copy">邀请码：<input id="copy-code" class="color-fff font-size-14" value="***" readonly>
							</div>
							<div class="copyBtnBox aui-flex-item-1 flex-auto" tapmode onclick="copyCode()">
								<span class="copyBtn">复制</span>
							</div>
							<div class="gd" tapmode onClick="openGiftList()">邀请VIP</div>
						</div> -->
                    </div>
                </div>
            </div>
            <div class="user-bom bg-white aui-flex-col aui-flex-middle aui-flex-between aui-font-size-12 color-e7" data-status="1">
                <div class="aui-flex-col">可升级为“运营商”</div>
                <div class="flex-auto aui-margin-l-10"><img src="../image/mine/m_icon6.png" style="height:0.8rem" alt=""></div>
                <div class="bomup" tapmode onclick="">收益+30% >> </div>
            </div>
        </div>
        <div class="aui-content">
            <div class="income pd-1 bg-white">
                <div class="aui-flex-col aui-flex-between aui-flex-middle tp-16 aui-border-b">
                    <div>
                        <div class="aui-font-size-12 color-35">累计总收入<span class="icon" tapmode onclick="openPop(this)"></span></div>
                        <div class="price">￥<span class="noText">***</span></div>
                    </div>
                    <div>
                        <div class="meBtn" tapmode onclick="openWin('full_commission_win')">收入明细</div>
                        <div class="meBtn" style="margin-top:0.4rem" tapmode onclick="openWin('pay_detail_win')">收支明细</div>
                    </div>
                </div>
                <ul class="aui-flex-col aui-flex-between tp-16">
                    <li>
                        <p class="aui-font-size-18 color-e7 text-bold" tapmode onclick="">￥<span class="noText">***</span></p>
                        <p class="aui-font-size-12 color-35">今日收益<span class="icon" tapmode onclick="openPop(this)"></span></p>
                    </li>
                    <li>
                        <p class="aui-font-size-18 color-e7 text-bold" tapmode onclick="">￥<span class="noText">***</span></p>
                        <p class="aui-font-size-12 color-35">上月结算<span class="icon" tapmode onclick="openPop(this)"></span></p>
                    </li>
                    <li>
                        <p class="aui-font-size-18 color-e7 text-bold" tapmode onclick="">￥<span class="noText">***</span></p>
                        <p class="aui-font-size-12 color-35">本月预估<span class="icon" tapmode onclick="openPop(this)"></span></p>
                    </li>
                </ul>
            </div>
            <div class="income pd-1 bg-white aui-margin-t-10">
                <div class="tp-16 aui-border-b">
                    <div class="aui-font-size-12 color-35">淘币</div>
                    <div class="aui-flex-col aui-flex-between aui-flex-middle">
                        <div class="price">￥<span class="noText" id="amount">***</span></div>
                        <div class="meBtn" tapmode onclick="openCash()">提现</div>
                    </div>
                </div>
                <ul class="aui-flex-col aui-flex-between tp-16">
                    <li>
                        <p class="aui-font-size-18 color-35 text-bold">￥<span class="noText">***</span></p>
                        <p class="aui-font-size-12 color-35">已累计你的朋友节省</p>
                    </li>
                    <li>
                        <p class="aui-font-size-18 color-35 text-bold">￥<span class="noText">***</span></p>
                        <p class="aui-font-size-12 color-35">累积提现</p>
                    </li>
                    <li>
                    </li>
                </ul>
            </div>
            <div class="aui-margin-t-10 pd-1 bg-white">
                <div class="list aui-flex-col aui-flex-between aui-flex-middle right-arrow" tapmode onclick="openWin('my_team_win')">
                    <div>我的团队</div>
                    <div class="aui-flex-col aui-flex-middle">
                        <ul class="list-in aui-flex-col">
                            <li><img src="" style="height:1.2rem" alt=""></li>
                        </ul>
                        <div class="text"><span class="noText" id="teamPeo">***</span>人</div>
                    </div>
                </div>
                <div class="list aui-flex-col aui-flex-between aui-flex-middle right-arrow" tapmode onclick="openWin('money_win')">
                    <div>我的积分</div>
                    <div class="text"><span class="noText">***</span>枚</div>
                </div>
                <div class="list aui-flex-col aui-flex-between aui-flex-middle right-arrow" tapmode onclick="openWin('reward_win')">
                    <div>我的奖励</div>
                    <div class="text"><span class="noText">***</span></div>
                </div>
                <div class="list aui-flex-col aui-flex-between aui-flex-middle right-arrow" tapmode onclick="openWin('order1_win')">
                    <div>淘客订单</div>
                    <div class="text"></div>
                </div>
                <div class="list aui-flex-col aui-flex-between aui-flex-middle">
                    <div>我的推荐人</div>
                    <div class="aui-flex-col aui-flex-middle">
                        <ul class="list-in aui-flex-col">
                            <li style="padding-left: 0.25rem;"><img src="../image/common/23.png" style="height:1.2rem" alt=""></li>
                        </ul>
                        <div class="text aui-padded-l-10">***</div>
                    </div>
                </div>
            </div>
            <div class="guide aui-flex-col aui-flex-between aui-flex-middle aui-margin-t-10">
                <dl tapmode onclick="openNew(this)">
                    <dt><img src="../image/mine/m_icon13.png" alt=""></dt>
                    <dd>新手课堂</dd>
                </dl>
                <dl tapmode onclick="openWin('yunying_win')">
                    <dt><img src="../image/mine/m_icon14.png" alt=""></dt>
                    <dd>专属运营</dd>
                </dl>
                <dl tapmode onclick="openNew(this)">
                    <dt><img src="../image/mine/m_icon15.png" alt=""></dt>
                    <dd>种草技巧</dd>
                </dl>
                <dl tapmode onclick="openWin('yaoqing_win')">
                    <dt><img src="../image/mine/m_icon16.png" alt=""></dt>
                    <dd>邀请好友</dd>
                </dl>
            </div>
        </div>
        <div style="height:1rem"></div>
    </div>
</body>
<script type="text/javascript" src="../script/import.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/clipboard.min.js"></script>
<script type="text/javascript">
    // var USER_VIP = 1;
    var userInfo;
    var vipType;
    apiready = function() {
        api.parseTapmode();
        var header = $api.byId('top');
        $api.fixStatusBar(header);
        var header1 = $api.byId('top1');
        $api.fixStatusBar(header1);

        getData()

        userInfo = getUserinfo();
        if (userInfo) {
            vipType = userInfo.user_vip;
            console.log(vipType)
        }




        //登录成功 事件监听
        api.addEventListener({
            name: 'loginSuccessEvent'
        }, function(ret, err) {
            $$('.noDataBox').addClass('aui-hide')
            $$('.dataBox').removeClass('aui-hide');
            getData()
        });
        api.addEventListener({
            name: 'reLoginEvent'
        }, function(ret, err) {
            if (ret) {
                $$('.noDataBox').addClass('aui-hide');
                $$('.dataBox').removeClass('aui-hide');
                getData()
            }
        });
        api.addEventListener({
            name: 'homeEvent'
        }, function(ret, err) {
            if (ret) {
                getData();
                userInfo = getUserinfo();
                if (userInfo) {
                    vipType = userInfo.user_vip;
                }
                $$('.noDataBox').addClass('aui-hide');
                $$('.dataBox').removeClass('aui-hide');
            } else {
                alert(JSON.stringify(err));
            }
        });

        // 监听退出登录
        api.addEventListener({
            name: 'logOutEvent'
        }, function(ret, err) {
            if (ret) {
                vipType = '';
                $$('.noDataBox').removeClass('aui-hide');
                $$('.dataBox').addClass('aui-hide');
                openLoginWx();
                api.parseTapmode();
            }
        });
        openLoginWx()
    };

    //会员升级
    function updateLevel(){
      api.ajax({
          url: BASE_URL + 'App/Select/upLevel',
          method: 'post',
          data: {
              values: {
                  user_id: userInfo.userid
              }
          }
      },function(ret, err){
          if (ret) {
              // alert( JSON.stringify( ret ) );
              api.toast({
                  msg: ret.info,
                  duration: 2000,
                  location: 'middle'
              });

          } else {
              alert( JSON.stringify( err ) );
          }
      });

    }

    // 立即升级
    function openInvio(el) {
        var status = $$(el).parent().data('status');
        api.openWin({
            name: 'vip_invio_win',
            url: 'mine/vip_invio_win.html',
            pageParam: {
                status: status
            }
        });

    }
    // 复制code
    function copyCode() {
        // if (vipType == 1) {
        //     toast('升级成为VIP开通更多权限');
        //     return;
        // }
        var clipBoard = api.require('clipBoard');
        var value = $$('#copy-code').val();
        if (value == '') {
            toast('没有邀请码')
            return;
        }
        clipBoard.set({
            value: value
        }, function(ret, err) {
            if (ret) {
                toast('邀请码复制成功')
            } else {
                alert(JSON.stringify(err));
            }
        });
    }

    function openCommis(el) {
        var text = $$(el).next().text();
        var index;
        if (text == '今日收益') {
            text = '今日收益';
            index = 1;
        }
        if (text == '本月预估') {
            text = '本月预估佣金';
            index = 2;
        }
        if (text == '上月结算') {
            text = '上月结算佣金';
            index = 3;
        }
        console.log(text)
        setTimeout(function() {
            api.openWin({
                name: 'full_commission_win',
                url: 'mine/full_commission_win.html',
                pageParam: {
                    text: text,
                    index: index
                }
            });
        }, 500)

    }


    //转账
    function zhuanzhang(){
      api.openWin({
          name: 'ti_cash_win2',
          url: 'mine/ti_cash_win2.html'
      });
    }
    // 提现
    function openCash() {
        // if (vipType == 1) {
        //     toast('升级成为VIP开通更多权限')
        //     return;
        // }
        if (userInfo.data_ali_email == null) {
            api.openWin({
                name: 'ti_cash_win',
                url: 'mine/ti_cash_win.html'
            });
        } else if (userInfo.data_ali_email != null) {
            var amount = $$('#amount').text();
            api.openWin({
                name: 'ti_amount_win',
                url: 'mine/ti_amount_win.html',
                pageParam: {
                    name: userInfo.user_name,
                    account: userInfo.data_ali_email,
                    amount: amount
                }
            });
        } else {
            api.ajax({
                url: BASE_URL + 'App/UserAccount/withdrawInhand',
                method: 'post',
                data: {
                    values: {
                        userid: getUserId(),
                        withdraw_status: 1
                    }
                }
            }, function(ret, err) {
                if (ret) {
                    if (ret.code == 1) {
                        api.openWin({
                            name: 'ti_progress_win',
                            url: 'mine/ti_progress_win.html',
                        });
                    }
                } else {
                    alert(JSON.stringify(err));
                }
            });

        }
    }
    // 打开我的订单
    function openOrder11() {
        setTimeout(function() {
            api.openWin({
                name: 'order1_win',
                url: 'mine/order1_win.html'
            });
        }, 500)

    }
    // 打开淘客订单
    function openOrder() {
        setTimeout(function() {
            api.openWin({
                name: 'order2_win',
                url: 'mine/order2_win.html'
            });
        }, 500)

    }
    // login
    function openLoginWx() {
        $$('#login').on('click', function() {
            openLoginBan()
        })
        api.parseTapmode();
    }

    function openLoginBan() {
        api.openWin({
            name: 'login',
            // url: 'widget://html/login_banner.html',
              url: 'widget://html/login.html',
            bounces: false,
            animation: {
                type: 'fade',
                duration: 300
            },
            slidBackEnabled: false,
            pageParam: {
                key: 'value'
            }
        });
    }
    // 运营商类型
    // function vipStaCls(){
    // 	var clss= '';
    // 	if(USER_VIP){
    // 		clss = 'tag-pt';
    // 	}else if(USER_VIP == 2){
    // 		clss = 'tag-vip'
    // 	}else if(USER_VIP == 3){
    // 		clss = 'tag-y'
    // 	}else if(USER_VIP == 4){
    // 		clss = 'tag-cj'
    // 	}
    // 	return clss;
    // }

    // 打开文章
    function openArticle() {
        var name = 'my';
        api.openWin({
            name: 'article_win',
            url: './center/article_win.html',
            pageParam: {
                name: name
            }
        });

    }

    function openWin(url) {
        // if (vipType == 1) {
        //     toast('升级成为VIP开通更多权限');
        //     return;
        // }
        var teamPeo = $$('#teamPeo').text()
        var yqCode = $$('#copy-code').val();
        api.openWin({
            name: url,
            url: 'mine/' + url + '.html',
            pageParam: {
                name: name,
                teamPeo: teamPeo,
                yqCode: yqCode
            }
        });
    }
    // 获取用户数据
    function getData() {
        api.ajax({
            url: BASE_URL + 'App/User/userData',
            method: 'post',
            data: {
                values: {
                    userid: getUserId()
                }
            }
        }, function(ret, err) {
            if (ret && ret.code == 1) {
                $$('.noDataBox').addClass('aui-hide')
                $$('.dataBox').removeClass('aui-hide')
                var tplTop = $$('#data_top_tpl').html();
                var tplBom = $$('#data_bom_tpl').html();
                var tempFn = doT.template(tplTop);
                var tempFn1 = doT.template(tplBom);
                $$('#data_top_html').html(tempFn(ret.data));
                $$('#data_bom_html').html(tempFn1(ret.data));
                api.parseTapmode();
            } else {
                $$('.noDataBox').removeClass('aui-hide');
                $$('.dataBox').addClass('aui-hide');
            }
        });
    }
    // 打开新手课堂和种草计划
    function openNew(el) {
        api.sendEvent({
            name: 'postListUpdateEvent'
        });
        var title = $$(el).children('dd').text()
        api.openWin({
            name: 'zc_xs_win',
            url: 'mine/zc_xs_win.html',
            pageParam: {
                title: title
            }
        });
    }
    // 问号弹出
    function openPop(el) {
        var title = $$(el).parents().text();
        console.log(title)
        api.openFrame({
            name: 'income_mask',
            url: 'income_mask.html',
            rect: {
                x: 'auto',
                y: 'auto',
                w: api.winWidth,
                h: api.winHeight
            },
            pageParam: {
                title: title
            },
            bounces: false,
        })
        api.parseTapmode();
    }
    // 邀请vip
    function openGiftList() {
        api.openWin({
            name: 'gift_index_win',
            url: 'giftBag/gift_index_win.html',
            pageParam: {
                name: 'test'
            }
        });
    }
    // 打开设置
    function openSet() {
        api.openWin({
            name: 'setting_win',
            url: 'mine/setting_win.html',
            pageParam: {
                name: 'test'
            }
        });

    }
    // 打开运营
    function openYun() {
        api.openWin({
            name: 'yunying_win',
            url: 'mine/yunying_win.html',
            pageParam: {
                name: 'test'
            }
        });
    }
    // 打开邀请
    function openInvite() {
        api.openWin({
            name: 'yaoqing_win',
            url: 'mine/yaoqing_win.html',
            pageParam: {
                name: 'test'
            }
        });
    }
</script>

</html>
